const router = require('koa-router')()
const {
    typeList
} = require('../controller/typeList')

router.prefix('/api')

/**
 * @description 获取筛选类型
 */
router.get('/type/list', async (ctx, next) => {
    const typeData = await typeList()
    ctx.body = typeData
})

module.exports = router
